package service.impl;

import java.util.ArrayList;
import java.util.List;

import dao.DepartmentDao;
import model.Department;
import service.DepartmentService;

public class DepartmentServiceImpl implements DepartmentService {

	private DepartmentDao  departmentDao=new DepartmentDao();
	@Override
	public List<Department> selectAllDepartments() {
		// TODO 自动生成的方法存根
		String sql="select *from department";
		List params=new ArrayList<>();
		return departmentDao.selectAll(sql,params);
	}

}
